import '@/common/common-used.css';
import '@/common/fonts/iconfont.css';
import '@/common/board-font/board-font.css';
import { createSSRApp } from 'vue';
import App from './App.vue';

// 全局组件
import MlFooterGuider from '@/components/ml-footer-guider.vue';
import MlTiles from '@/components/ml-tiles.vue';
import MlPage from '@/components/ml-page.vue';
import MlBoard from '@/components/ml-board.vue';
import MlPhotoFrame from '@/components/ml-photo-frame.vue';
import MlHandTile from '@/components/ml-hand-tile.vue';

export function createApp() {
	const app = createSSRApp(App);
	app.component('ml-footer-guider', MlFooterGuider);
	app.component('ml-tiles', MlTiles);
	app.component('ml-page', MlPage);
	app.component('ml-board', MlBoard);
	app.component('ml-photo-frame', MlPhotoFrame);
	app.component('ml-hand-tile', MlHandTile);
	return {
		app
	};
}
